package com.neusoft.model;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @Author: duan
 * @Date: Create in 16:33 2020/10/27
 */
public class Student {
    private String username;
    private Integer age;
    private List<String> aihao;
    private String[] books;
    private Map<String, Object> map;

    public String getUsername() {
        return username;
    }

    public Student setUsername(String username) {
        this.username = username;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public Student setAge(Integer age) {
        this.age = age;
        return this;
    }

    public List<String> getAihao() {
        return aihao;
    }

    public Student setAihao(List<String> aihao) {
        this.aihao = aihao;
        return this;
    }

    public String[] getBooks() {
        return books;
    }

    public Student setBooks(String[] books) {
        this.books = books;
        return this;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public Student setMap(Map<String, Object> map) {
        this.map = map;
        return this;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Student{");
        sb.append("username='").append(username).append('\'');
        sb.append(", age=").append(age);
        sb.append(", aihao=").append(aihao);
        sb.append(", books=").append(books == null ? "null" : Arrays.asList(books).toString());
        sb.append(", map=").append(map);
        sb.append('}');
        return sb.toString();
    }
}
